<!--
- Author:  LiShibin.
- Date:    2017/7/27 0027.
- File:    pay.
-->
<template>
  <div v-show="show">
    <div class="Coupontips">
      <div class="Couponbox">
        <div class="couponimg"><img src="../../assets/images/youhuiquan.png"></div>
        <h3>注册成功</h3>
        <p>优惠券已放到您的卡包哦~</p>
        <a href="javascript: void(0)" class="" @click="closePop">我知道了</a>
      </div>
    </div>
  </div>
</template>

<script>
  export default{
    data() {
      return {
        show: false,
        param: {}, // {}
        closedHandle: function () {
        }
      }
    },
    components: {},
    created() {
      this.getRegistCoupon()
    },
    methods: {
      closePop() {
        this.show = false
      },
      // 获取注册赠送的优惠券
      getRegistCoupon() {
        this.$request.couponTrigger('3').then(data => {
          if (data.length > 0) {
            this.show = true
          }
        }).catch(e => {})
      }
    }
  }
</script>

<style>

</style>